package com.dasberg.guice.testobjects;

import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;

/**
 * SnackModule.
 * @author mischa
 */
public class SnackModule extends AbstractModule {
    @Override
    protected void configure() {
        Multibinder<ISnack> multibinder = Multibinder.newSetBinder(binder(), ISnack.class);
        multibinder.addBinding().toInstance(new Twix());
        multibinder.addBinding().to(Snickers.class);
        bind(Machine.class).to(SnackMachine.class);
    }
}